import request from '@/utils/request';

export async function queryUser(params) {
  return request('/api/user', {
    params
  });
}
export async function addUser(params) {
  console.log(params)
  return request('/api/user', {
    method: 'POST',
    data: {
      ...params
    },
  });
}
export async function updateUser(params) {
  console.log(params)
  return request('/api/user', {
    method: 'PUT',
    data: {
      ...params
    },
  });
}
export async function removeUser(params) {
  return request('/api/user', {
    method: 'DELETE',
    data: {
      ...params
    },
  });
}

export async function queryClassgrade(params) {
  return request('/api/classgrade', {
    method: 'GET',
    data:{

    }
  });
}
